package com.glela.platform.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.glela.platform.model.GivePromotionHistory;

public interface GivePromotionHistoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(GivePromotionHistory record);

    int insertSelective(GivePromotionHistory record);

    GivePromotionHistory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GivePromotionHistory record);

    int updateByPrimaryKey(GivePromotionHistory record);

    List<Map<String, Object>> selectGives(Long accepter);
    
	List<Map<String,Object>> selectGivePromotionPackages(@Param("giver") Long giver,@Param("accepter") Long accepter);

	List<GivePromotionHistory> selectByAccepter(@Param("accepter") Long accepter);

    List<Map<String,Object>> selectTecherGivePromotionRecordPage(@Param("giver") String loginUserId, @Param("accepter") String inviterUserId, @Param("startIndex") int startIndex, @Param("pageSize") Integer pageSize);

}